<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:cc="http://java.sun.com/jsf/composite">
	
	<f:subview id="menu">
		<h:form id="menu">
			<p:dialog header="Enter " widgetVar="dlg" resizable="false">  
					<h:panelGrid columns="2" style="margin-bottom:10px">  
			    	       <h:outputLabel for="filename" value="Filename :" />  
			        	   <p:inputText id="filename" value="#{filesListBean.currentFile.name}" />
			        	   <h:outputLabel for="filepath" value="File Path :" />  
			        	   <p:inputText id="filepath" value="#{filesListBean.dirPath}" />
			        	   
			        	   <p:commandButton id="submit" value="Submit"  oncomplete="dlg.;"
			        	   actionListener="#{filesListBean.save}" update=""/>
			        	   
			       	</h:panelGrid>  
			        	     
			</p:dialog>

			<p:menubar>  
			        <p:submenu label="New" icon="ui-icon-document">  
			            <p:menuitem value="File" icon="" onclick="dlg.show()" update=""/>    
			            <p:menuitem value="Directory" icon="" url="#" />
			        </p:submenu>  
			        
			        <p:submenu label="Share" icon="ui-icon-pencil">  
			            <p:menuitem value="Upload" url="#" icon="ui-icon-arrowreturnthick-1-w" />  
			            <p:menuitem value="Download" url="#" icon="ui-icon-arrowreturnthick-1-e" />  
			        </p:submenu>  
			    </p:menubar>
		    </h:form>
		</f:subview>
    </html>